using Game;
using GameEntitySystem;

namespace SCIENEW {
    /// <summary>
    /// 如果一个机器有实体，接做个接口
    /// </summary>
    public interface IEntityDevice<T> where T : Component {
        /// <summary>
        /// 获取机器的实体名称（xdb里写的）
        /// </summary>
        /// <param name="value"></param>
        /// <returns></returns>
        string GetEntityName(int value);

        /// <summary>
        /// 获取界面
        /// </summary>
        /// <param name="inventory"></param>
        /// <param name="component"></param>
        /// <returns></returns>
        Widget GetWidget(IInventory inventory, T component);
    }
}